package com.spyx.activity.mapper;

import com.atyx.spyx.model.activity.CouponInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 优惠券信息 Mapper 接口
 * </p>
 *
 * @author yhp
 * @since 2024-05-21
 */
public interface CouponInfoMapper extends BaseMapper<CouponInfo> {

    List<CouponInfo> selectCouponInfoList(@Param("userId") Long userId,
                                          @Param("skuId") Long skuId,
                                          @Param("categoryId") Long categoryId);

    List<CouponInfo> selectCartCouponInfoList(Long userId);
}
